package com.gxa.jd.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * order实体类
 *
 * @author Administrator
 */
@Table(name = "room_order")
@Data
public class Order implements Serializable {

    @Id
    private String orderNum;//订单编号

    @Column(name = "hotel_id")
    private Long hotelId;//酒店

    @Column(name = "room_id")
    private Long roomId;//房型名称

    private java.util.Date checkInTime;//入住日期

    private java.util.Date checkOutTime;//退房日期

    @Column(name = "check_in_num")
    private Integer checkInNum;//入住天数
    @Column(name = "reserve_num")
    private Integer reserveNum;//预定间数
    @Column(name = "check_in_person")
    private String checkInPerson;//入住人姓名

    private String phone;//入住人手机

    private String message;//留言

    private Double money;//应付金额
    @Column(name = "user_id")
    private Long userId;//user_id

    private Integer payment;//支付方式
    @Column(name = "submission_time")
    private Date submissionTime;//订单创建时间

    private Integer state;//订单状态

    private Integer mode;//支付方式

    @Column(name = "last_pay_time")
    private Date lastPayTime;//超时时间

}
